package com.v1.video;

import android.graphics.Bitmap;

import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.assist.ImageScaleType;
import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer;
import com.v1.video.activity.SharePlatformActionListener;
import com.v1.video.pay.MD5;
import com.v1.video.util.Logger;


public class Constant {
    //正式静态接口
    public final static String SERVER_IP_4_STATIC;
    //正式服务器地址
    public final static String SERVER_IP_PHP;
    //用户系统的正式域名
    public final static String SERVER_IP_USER;

    public final static String SERVER_IP_UPLOAD;

    public static final boolean IS_LOG_PRINT;

    // start 第四期
    public static String PRODUCT_CODE;
    public static String DEVICEID;
    public static String PRODUCT_VERSION;

    static {
        SERVER_IP_4_STATIC = BuildConfig.SERVER_IP_4_STATIC;
        SERVER_IP_PHP = BuildConfig.SERVER_IP_PHP;
        SERVER_IP_USER = BuildConfig.SERVER_IP_USER;
        SERVER_IP_UPLOAD = BuildConfig.SERVER_IP_UPLOAD;

        IS_LOG_PRINT = BuildConfig.DEBUG;
    }


    public static final int PAGE_SIZE = 20;

    public static final int REQUESTCODE_FULL_SCREEN = 100;    //小播放器切换成全屏
    public static final int REQUESTCODE_LOGIN_CODE = 101;    //登录
    public static final int REQUESTCODE_COMMENT_CODE = 102;    //评论
    public static final int REQUESTCODE_OTHERPERSON_CODE = 103;    //他人页
    public static final int REQUEST_CODE_VIDEO_CAPTURE = 104;  //拍摄
    public static final int REQUEST_CODE_VIDEO_ADV_EDIT = 105;  //拍摄高级编辑
    public static final int REQUEST_CODE_CLIP_PICK = 107;//mv编辑模式
    public static final int REQUEST_CODE_PAIKE_VIDEO_COMMENT = 106;  //拍客评论返回
    public static final int REQUEST_CODE_VIDEO_SELECT = 108;
    public static final int REQUEST_COMMENT_CODE = 109;
    public final static boolean DEBUG_MODE = true;
    public final static String DB_NAME = "v1video-db";

    public static final String UPDATE_IMAGE_ACTION = "update_image_action";
    public static final int COLLAPSE_FILTER = 800;
    public static final int SHOW_LINE = 801;
    public static final int UPDATE_UI = 802;
    public static final int UPDATE_SHOT_COUNT = 803;
    public static final int UPDATE_VIDEO_DURATION = 804;
    public static final int SHOW_TOAST_IN_THREAD = 805;
    public static final int SWITCH_CAMERA_ENABLE = 806;

    //	public static final String SERVER_IP_UPLOAD = "http://192.168.9.105:8080/v1_upload_web/";
//	public static final String SERVER_IP_UPLOAD = "http://up.v1.cn/v1_upload_web/";
    public static final String SERVER_IP = "http://i.apps.v1.cn";    //外网服务器正式上线域名
    public static final String VIDEO_UPLOAD_IP = "u.apps.v1.cn";
    public static final int VIDEO_UPLOAD_PORT = 81;

    public static final String CDN_IP = "http://static.apps.v1.cn"; // CDN缓存静态页地址
    //    public static final String SERVER_IP_4_STATIC = "http://static.app.m.v1.cn/www/";//正式静态接口
//    public static final String SERVER_IP_4_STATIC_TEST = "http://dev.app.v1cn/www/";//测试静态接口
//    public static final String SERVER_IP_4_STATIC = "http://192.168.9.65/www/";//测试静态接口
//    public static final String SERVER_IP_PHP = "http://dynamic.app.m.v1.cn/www/dynamic.php?";//正式服务器地址
//    public static final String SERVER_IP_PHP_TEST = "http://dev.app.v1cn/www/dynamic.php?";//测试服务器地址
//    public static final String SERVER_IP_PHP = "http://192.168.9.65/www/dynamic.php?";//测试服务器地址
//    public static final String SERVER_IP_USER = "http://api.sso.v1.cn/www/dynamic.php?";//用户系统的正式域名
    public static final String SERVER_IP_UPLOAD_FILE = "http://mload.v1.cn/www/dynamic.php?";//

    public final static int COLUMN_COUNT = 2; // 显示列数
    public final static int PICTURE_COUNT_PER_LOAD = 20; // 每次加载20张图片
    public final static int PICTURE_TOTAL_COUNT = 10000; //允许加载的最多图片数
    public final static int HANDLER_WHAT = 1;
    public final static int MESSAGE_DELAY = 200;

    public static final String APP_INFO = "app_info"; //保存应用信息
    public static final String CURRENT_ADDRESS = "currentAddress"; //保存定位地址信息
    public static final String CHANNEL_FILENAME = "/channel.gson"; //频道缓存
    public static final String HEADLINE_FILENAME = "/headline.gson";//头条缓存
    public static final String SEE_FILENAME = "/see.gson";     //看到页缓存

    public static final String LOGO_ICON_URL = "http://static.v1.cn/images/v1cn/m-logo.jpg";

    /**
     * 订阅精选的缓存
     */
    public static final String SUBSCRIBE_SELECTION_FILENAME = "/subscribeselection.gson";
    /**
     * 订阅按时间的缓存
     */
    public static final String SUBSCRIBE_TIME_FILENAME = "/subscribetime.gson";
    /**
     * 订阅我的订阅的缓存
     */
    public static final String SUBSCRIBE_MY_FILENAME = "/subscribemy.gson";
    /**
     * 主题：全部主题的缓存
     */
    public static final String THEME_ALL_THEME_FILENAME = "/themealltheme.gson";
    public static final String STAR_LIST_INFO = "/starlistinfo.gson";
    public static final String STAR_PETITION_LIST_INFO = "/starpetitionlistinfo.gson";

    /**
     * 返回数据中的result
     */
    public static final String RESULT = "result";
    public static final String RESULT_CODE = "code";
    public static final String RESULT_CODE_SUCCESS = "0";      //执行成功
    public static final String RESULT_CODE_FAIL = "1";         //执行失败
    public static final String RESULT_CODE_SUCCESS_V1 = "1";      //v1平台表示失败
    public static final String RESULT_CODE_FAIL_V1 = "0";         //v1平台表示成功
    public static final String RESULT_CODE_USER_DISABLE = "10006";//用户被禁用

    public static final int CODE_RESULT_SUCCESS = 0;

    /**
     * 绑定第三方平台类型type，此处的值 由张晨 定义  分配
     */
    public static final String BINDING_TYPE_SINA = "app1006";
    public static final String BINDING_TYPE_TENCENT = "app1002";
    public static final String BINDING_TYPE_QQ = "app1001";
    public static final String BINDING_TYPE_WECHAT = "app1003";
    public static final String BINDING_TYPE_HUAWEI = "app1007";

    public static final int SSO_LOGIN_WEIXIN = 1001;
    public static final int SSO_LOGIN_QQ = 1002;
    public static final int SSO_LOGIN_HUAWEI = 1003;

    /**
     * 0百度广告,1 视频,2 视频分类,3 活动,4 话题,5 链接,6 VR视频,7 主题,8 广告,9 VR直播,10 VR付费直播,
     * 11  秒评,12、CINB视频-电视剧  13、CINB视频-综艺 14、CINB视频-电影 15、CINB视频-动漫
     */
    public static final String VIDEO_TYPE_0 = "0";
    public static final String VIDEO_TYPE_1 = "1";
    public static final String VIDEO_TYPE_2 = "2";
    public static final String VIDEO_TYPE_3 = "3";
    public static final String VIDEO_TYPE_4 = "4";
    public static final String VIDEO_TYPE_5 = "5";
    public static final String VIDEO_TYPE_6 = "6";
    public static final String VIDEO_TYPE_7 = "7";
    public static final String VIDEO_TYPE_8 = "8";
    public static final String VIDEO_TYPE_9 = "9";
    public static final String VIDEO_TYPE_10 = "10";
    public static final String VIDEO_TYPE_11 = "11";
    public static final String VIDEO_TYPE_12 = "12";
    public static final String VIDEO_TYPE_13 = "13";
    public static final String VIDEO_TYPE_14 = "14";
    public static final String VIDEO_TYPE_15 = "15";

    /**
     * 广告日志统计：操作编码1点击广告2曝光
     */
    public static final int STATE_ADV_CZBM_1 = 1;
    public static final int STATE_ADV_CZBM_2 = 2;
    /**
     * 广告日志统计：广告位置1.开机大图、2，首页焦点图,3.频道页专题位 、4.播放页广告位、5.首页及频道固定内容位
     */
    public static final int STATE_ADV_CZSX_1 = 1;
    public static final int STATE_ADV_CZSX_2 = 2;
    public static final int STATE_ADV_CZSX_3 = 3;
    public static final int STATE_ADV_CZSX_4 = 4;
    public static final int STATE_ADV_CZSX_5 = 5;
    /**
     * 广告日志统计：czjg  1 曝光成功，2.曝光失败 3.点击成功 4.点击失败
     */
    public static final int STATE_ADV_CZJG_1 = 1;
    public static final int STATE_ADV_CZJG_2 = 2;
    public static final int STATE_ADV_CZJG_3 = 3;
    public static final int STATE_ADV_CZJG_4 = 4;

    public static final String ADV_SOURCE_CAROUSE = "1";
    public static final String ADV_SOURCE_RECOMMEND = "2";
    public static final String ADV_SOURCE_CLASSIFY = "3";
    public static final String ADV_SOURCE_PLAYDETAIL = "4";
    public static final String ADV_SOURCE_SUBJECT = "5";
    public static final String ADV_SOURCE_PUSH = "6";
    public static final String ADV_SOURCE_OTHER = "7";


    /**
     * 用户添加关注
     */
    public static final String ATTENTION_TYPE_ADD = "1";
    /**
     * 用户取消关注
     */
    public static final String ATTENTION_TYPE_CANCEL = "2";
    /**
     * V拍客部分用户关注4中状态值
     * 0 未关注  3  反关注   对应添加关注
     * 1 关注  2 相互关注  对应取消关注
     */
    public static final String ATTENTION_TYPE_NOT = "0";
    public static final String ATTENTION_TYPE_YET = "1";
    public static final String ATTENTION_TYPE_TOGEHER = "2";
    public static final String ATTENTION_TYPE_BY = "3";

    public static final String NO_GET_POSITION = "未成功获取您的地理位置";
    /**
     * 判断用户是否第一次保存有趣的人，分用户统计，后面需要连接用户id
     */
    public static final String HAD_LOAD_INTERESTINGMAN = "had_load_interestingMan_";
    public static final String FRIEND_DATA_FABU_TIME = "friend_fabu_time";

    /**
     * 社区，首页，看头条背景图片
     */
    public static String homepage_bg = "";
    public static String v1_star_user_path = "Android/V1/xingmore/";
    public static String v1_star_userinfo_path = v1_star_user_path + "userhistory.txt";
    /**
     * 相关视频id传递时的参数名称
     */
    public static String RELATED_VIDEO_ID = "related_Video_Id";

    /**
     * 用户头像options
     */
    public static final DisplayImageOptions IMAGE_OPTIONS_FOR_USER_OTHER = new DisplayImageOptions.Builder().showImageOnLoading(R.drawable.anonymous_avatar)
            .showImageForEmptyUri(R.drawable.icon_user_image_default)
            .showImageOnFail(R.drawable.icon_user_image_default).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();
    public static final DisplayImageOptions IMAGE_OPTIONS_FOR_USER_COMMON = new DisplayImageOptions.Builder().showImageOnLoading(R.drawable.anonymous_avatar)
            .showImageForEmptyUri(R.drawable.anonymous_avatar)
            .displayer(new RoundedBitmapDisplayer(95))
            .showImageOnFail(R.drawable.anonymous_avatar).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();
    /**
     * 视频图片的options
     */
    public static final DisplayImageOptions IMAGE_OPTIONS_FOR_VIDEO = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.common_place_holder_bg)
            .showImageForEmptyUri(R.drawable.common_place_holder_bg)
            .showImageOnFail(R.drawable.common_place_holder_bg).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();
    /**
     * 视频图片的options
     */
    public static final DisplayImageOptions IMAGE_OPTIONS_FOR_VIDEO_PERSONCENTER = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.attion_place_holder)
            .showImageForEmptyUri(R.drawable.attion_place_holder)
            .showImageOnFail(R.drawable.attion_place_holder)
            .bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();
    /**
     * 视频图片的options
     */
    public static final DisplayImageOptions IMAGE_OPTIONS_FOR_HEAD = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.video_detail_holder)
            .showImageForEmptyUri(R.drawable.video_detail_holder)
            .showImageOnFail(R.drawable.video_detail_holder).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();
    public static final DisplayImageOptions IMAGE_OPTIONS_FOR_CHANNEL = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.headline_channel_add)
            .showImageForEmptyUri(R.drawable.headline_channel_add)
            .showImageOnFail(R.drawable.headline_channel_add).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();
//    /**头条页的北景options*/
//    public static final DisplayImageOptions IMAGE_OPTIONS_FOR_HEADLINE = new DisplayImageOptions.Builder()
//            .showImageOnLoading(R.drawable.headline_bg)
//            .showImageForEmptyUri(R.drawable.headline_bg)
//            .showImageOnFail(R.drawable.headline_bg).bitmapConfig(Bitmap.Config.RGB_565)
//            .imageScaleType(ImageScaleType.NONE).cacheInMemory(true).cacheOnDisc(true)
//            .resetViewBeforeLoading(true).build();

    /**
     * 视频图片的options
     */
    public static final DisplayImageOptions IMAGE_OPTIONS_FOR_ADVERTISEMENT = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.loading_advertisement_bg)
            .showImageForEmptyUri(R.drawable.loading_advertisement_bg)
            // .displayer(new RoundedBitmapDisplayer(15))       //图片圆角显示，值为整数
            .showImageOnFail(R.drawable.loading_advertisement_bg).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();

    /**
     * 首页广告
     */
    public static final DisplayImageOptions IMAGE_OPTIONS_FOR_HOME_ADVERTISEMENT = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.image_options_for_home_advertisement)
            .showImageForEmptyUri(R.drawable.image_options_for_home_advertisement)
            .showImageOnFail(R.drawable.image_options_for_home_advertisement).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();

    /**
     * 发现页公告
     */
    public static final DisplayImageOptions IMAGE_OPTIONS_FOR_DISCOVERY_ADVERTISEMENT = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.image_options_for_discovery_advertisement)
            .showImageForEmptyUri(R.drawable.image_options_for_discovery_advertisement)
            .showImageOnFail(R.drawable.image_options_for_discovery_advertisement).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();

    //新浪微博
    public static final String APP_KEY = "2045436852";
    public static final String REDIRECT_URL = "http://www.v1.cn";
    public static final String SCOPE =
            "email,direct_messages_read,direct_messages_write,"
                    + "friendships_groups_read,friendships_groups_write,statuses_to_me_read,"
                    + "follow_app_official_microblog," + "invitation_write";

    public static final String HUAWEI_APP_KEY = "10200923";

    //腾讯微博

    /**
     * 1.视频 频道列表（游客身份）list
     */
    public static final String QUERY_MS_CHANNEL_LIST = SERVER_IP + "/cs/video/QueryMsChannellist.html";

    /**
     * 视频 频道列表（用户身份  测试id=2842）
     */
    public static final String QUERY_USER_MS_CHANNEL_LIST = SERVER_IP + "/cs/video/QueryUserMsChannellist.html";
    /**
     * 保存修改频道
     * 参数：     userId= 2842
     * cid="cid1,cid2,cid3"
     */
    public static final String ADD_USER_MS_CHANNEL_LIST = SERVER_IP + "/cs/video/addUserMsChannellist.html";

    //看头条部分
    /**
     * 获取文章信息(v1   视频详情页)
     */
    public static final String QUERY_VIDEO_DETAIL_LIST = "http://api.v1.cn/v1Enhanced/v1app.getArticle";

    /**
     * 获取相关拍客视频(视频详情页中拍客视频)
     */
    public static final String HEADLINES_QUERY_VIDEO_DETAILS_LIST = SERVER_IP + "/cs/video/headlinesQueryVideoDetailslist.html";

    /**
     * 获取点赞的次数(v1 )
     * newsId接在地址后面
     */
    public static final String FIND_SELF_VOTE_RESULT = "http://vote.v1.cn/web/VoteSubmit/findSelfVoteResults/10131211000a21ee11a3/"; //上线地址
//	public static final String FIND_SELF_VOTE_RESULT = "http://111.207.209.69:8080/web/VoteSubmit/findSelfVoteResults/1014051505041f82d3f6/"; //测试地址
    /**
     * 点击赞（v1）
     * newsId接在地址后面
     */
    public static final String SUBMIT_SELF_VOTE_RESULT = "http://vote.v1.cn/web/VoteSubmit/self/10131211000a21ee11a3/1/"; //上线地址
//	public static final String SUBMIT_SELF_VOTE_RESULT = "http://111.207.209.69:8080/web/VoteSubmit/self/1014051505041f82d3f6/1/"; //测试地址

    /**
     * 取得新闻的评论数量(v1)
     */
//	public static final String QUERY_COMMENT_LIST_COUNT = "http://111.207.209.63:8888/api/comment/listCount";
    public static final String QUERY_COMMENT_LIST_COUNT = "http://api.apps.v1.cn/comment/listCount";
    /**
     * 取得新闻的评论列表(v1)
     */
//	public static final String QUERY_COMMENT_LIST = "http://111.207.209.63:8888/api/comment/list";
    public static final String QUERY_COMMENT_LIST = "http://api.apps.v1.cn/comment/list";

    /**
     * 提交头条评论(v1)
     */
//	public static final String SAVE_COMMENT = "http://111.207.209.63:8888/api/comment/save-comment";
    public static final String SAVE_COMMENT = "http://api.apps.v1.cn/comment/save-comment";

    /**
     * 视频举报
     * 参数 userId  videoId
     */
    public static final String ADD_VIDEO_REPORT = SERVER_IP + "/cs/video/addvideoReport.html";

    /**
     * 查询视频是否举报
     * 参数 userId  videoId
     */
    public static final String QUERY_VIDEO_REPORT = SERVER_IP + "/cs/video/queryvideoReport.html";

    /**
     * 视频收藏
     * 参数 userId  videoId
     */
    public static final String COLLECTION_VIDEO = SERVER_IP + "/cs/video/collectionVideo.html";

    /**
     * 查询是否视频收藏
     * 参数 userId  videoId     stype（ 0 表示新闻   1 表示拍客视频 ）
     */
    public static final String QUERY_COLLECTION_VIDEO = SERVER_IP + "/cs/video/querycollectionVideo.html";

    /**
     * 视频取消收藏
     * 参数 userId  videoId
     */
    public static final String DELET_COLLECTION_VIDEO = SERVER_IP + "/cs/video/deletcollectionVideo.html";

    /**
     * 分享
     */
    public static final String SHARE_FORWARD_VIDEO = SERVER_IP + "/cs/video/forwardVideo.html";


    /**
     * 查询v拍客视频详情，三期新的接口
     * 参数videoId
     */
    public static final String QUERY_V1VIDEO_DETAILS3 = SERVER_IP + "/videoDetail/findVideoDetailByVideoIdAndUserId.json";
    /**
     * 查询v拍客视频详情，新的静态接口
     * 参数videoId
     */
    public static final String QUERY_V1VIDEO_DETAILS3_STATIC = CDN_IP + "/static/findVideoDetailByVideoIdAndUserId/";
    /**
     * 视频点赞
     * 参数 videoId
     */
    public static final String ADD_VIDEO_PRAISE = SERVER_IP + "/cs/v1/AddVideoPraise.html";

    /**
     * 拍客评论信息或 回复评论信息  接口
     * 参数 videoId  userId comments  replyUserId（如果不是回复别人的评论replyUserId 可以不用传）
     */
    public static final String ADD_COMMENTS = SERVER_IP + "/cs/comments/AddComments.html";

    /**
     * 评论点赞接口
     * 参数 commentsId  userId
     */
    public static final String ADD_COMMENTS_PRAISE = SERVER_IP + "/cs/comments/AddCommentsPraise.html";
    /**
     * 查询评论信息（包括评论、评论回复 点赞统计数量)
     * 参数  videoId
     * page_index
     */
    public static final String QUERY_VIDEO_COMMENTS_LIST = SERVER_IP + "/cs/comments/QueryVideoCommentslist.html";

    /**
     * 添加或取消关注
     * 参数  userId  focusUserId  typeld(1 添加关注，2 取消关注)
     */
    public static final String ADD_OR_CANCEL_ATTENTION = SERVER_IP + "/cs/user/AddorCancelAttention.html";

    /**
     * 达人列表
     * 参数：state         12=达人、11=朋友（废弃）
     * page_index=0    页码
     */
    public static final String QUERY_V1_USERINFO_TALENT_LIST = SERVER_IP + "/cs/user/Query_V1_userinfoTalentlist.html";

    /**
     * 朋友列表
     * 参数  userId
     */
    public static final String GET_USER_BY_MOBILE = SERVER_IP + "/web/user/info/getuserbymobile.json";

    /**
     * 保存有趣的人
     * 参数userId  focusUserIds
     */
    public static final String ADD_INTERESTING_MAN = SERVER_IP + "/cs/user/addyijianguanzhuAttention.html";
    /**
     * 查询是否有好友
     * 参数userId
     */
    public static final String QUERY_MYV1FOCUSONORFANS = SERVER_IP + "/cs/user/MyV1FocusOnorFans.html";

    //登录注册相关
    /**
     * 用户是否禁用
     * 参数 userId
     */
    public static final String IF_USER_DISABLE = SERVER_IP + "/cs/startisdisable.html";

    /**
     * 第三方绑定
     * 参数  <br/>
     * logintype       //app1006 新浪微博    app1002  腾讯微博<br/>
     * token    <br/>
     * token_expiretime  <br/>
     * openid  <br/>
     * source_type     //app来源型号：0：未知 1 Andriod 2 IOS<br/>
     * source_platform  //用户来源 1：web 2:app<br/>
     * access_ip  <br/>
     * token_expiredate   <br/>
     * userid <br/>
     */
    public static final String MAIN_BINDSSO = SERVER_IP + "/main/bindsso.html";

    /**
     * 解绑
     * 参数  v1sso_id   userId
     */
    public static final String MAIN_REMOVEBIND = SERVER_IP + "/main/removebind.html";
    /**
     * 第三方登录
     * 参数  <br/>
     * logintype       //app1006 新浪微博    app1002  腾讯微博<br/>
     * token    <br/>
     * token_expiretime  <br/>
     * openid  <br/>
     * source_type     //app来源型号：0：未知 1 Andriod 2 IOS<br/>
     * source_platform  //用户来源 1：web 2:app<br/>
     * access_ip  <br/>
     * token_expiredate   <br/>
     * userid   //可以为null<br/>
     */
    public static final String MAIN_LOGINSSO = SERVER_IP + "/main/loginsso.html";
    /**
     * 注册
     */
    public static final String REGISTER = SERVER_IP + "/main/register.html";
    /**
     * 登录
     */
    public static final String LOGIN = SERVER_IP + "/main/login.html";
    /**
     * 获取验证码 ：上传参数isexist：1为注册2为忘记密码
     */
    public static final String GET_VCODE = SERVER_IP + "/main/sendMobileVcode.html";
    /**
     * 发送验证码  ，上传参数isexist：1为注册2为忘记密码
     */
    public static final int GET_VCODE_REGIST = 1;
    public static final int GET_VCODE_FORGET = 2;
    public static final String SEND_VCODE = SERVER_IP + "/main/checkMobileVcode.html";
    /**
     * 3期上传验证码和密码，直接修改
     */
    public static final String SEND_VCODE_WITH_PASSWORD = SERVER_IP + "/main/checkMobileVcodeAndRespwd.html";
    /**
     * 匹配通讯录
     */
    public static final String SEND_CONTACT = SERVER_IP + "/cs/user/AddUserphone.html";
    /**
     * 查询是否导入通讯录  <br/> 参数userId
     */
    public static final String IS_QUERY_USER_PHONE = SERVER_IP + "/cs/user/isqueryUserphone.html";
    public static final String IS_QUERY_USER_PHONE_YES = "1";//已经上传
    public static final String IS_QUERY_USER_PHONE_NO = "0";//未上传
    /**
     * 修改密码
     */
    public static final String UPDATE_PWD = SERVER_IP + "/main/updatepwd.html";
    /**
     * 忘记密码
     */
    public static final String RESET_PWD = SERVER_IP + "/main/respwd.html";

    /**
     * 个人主页 二期
     */
    public static final String GET_MY_CENTER = SERVER_IP + "/cs/user/MyCenter.json";
    /**
     * 个人中心列表数据(发布、转发、收藏) 二期
     */
    public static final String GET_PERSONAL_DATALIST = SERVER_IP + "/cs/user/MyCenterListOrther.json";
    /**
     * 他人主页
     */
    public static final String GET_OTHERCENTER = SERVER_IP + "/cs/user/OthersCenter.html";
    /**
     * 关注和取消关注
     */
    public static final String SET_FO_UNFO = SERVER_IP + "/cs/user/AddorCancelAttention.html";

    //设置相关
    /**
     * 个人信息更新
     */
    public static final String UPDATE_USERINFO = SERVER_IP + "/cs/user/updateuserinfo.html";
    /**
     * 用户更新头像
     */
    public static final String UPDATE_IMG = SERVER_IP + "/cs/user/updateImage.html";
    /**
     * 用户更新背景
     */
    public static final String UPDATE_BACK_IMG = SERVER_IP + "/cs/user/updateBackgroundImage.html";
    /**
     * 判断第三方是否设置过用户名
     */
    public static final String EDIT_USERNAME = SERVER_IP + "/main/iseditusername.html";
    /**
     * 第三方登录保存用户名和密码
     */
    public static final String UPUSERBYSSO = SERVER_IP + "/main/upuserbysso.html";
    /**
     * 手机绑定
     */
    public static final String BIND_MOBILE = SERVER_IP + "/main/bindmobile.html";
    /**
     * 手机解绑
     */
    public static final String REMOVE_MOBILE = SERVER_IP + "/main/removemobile.html";

    /**
     * 设置里的搜索拍客
     */
    public static final String SEARCH_PAIKE_LIST = SERVER_IP + "/cs/search/SearchUser_List.html";

    /**
     * 设置里的搜索视频
     */
    public static final String SEARCH_VIDEO_LIST = SERVER_IP + "/cs/search/QuerySearchandvideolist.html";
    /**
     * 设置里的应用推荐
     */
    public static final String OPTION_RECOMMEND_APP_LIST = SERVER_IP + "/cs/app/QueryAppRecommendedlist.html";
    /**
     * 设置里的消息提醒
     */
    public static final String OPTION_MESSAGE_TIPS = SERVER_IP + "/cs/app/userAddsetup.html";
    /**
     * 我的登录 页面的消息红点
     */
    public static final String OPTION_MESSAGE_RED_POINT = SERVER_IP + "/message/getMessagesCountNew.json";
    /**
     * 关于里的意见反馈
     */
    public static final String ABOUT_IDEA = SERVER_IP + "/cs/app/AddUserOpinion.html";
    /**
     * 版本更新
     */
    public static final String ABOUT_CHECK_UPDATA = SERVER_IP + "/cs/app/Querynewversion.html";
    /**
     * loading页
     */
    public static final String loading_page = SERVER_IP + "/cs/app/loadingmessge.html";
    /**
     * 设置-个人中心里的-删除视频
     */
    public static final String OPTION_DELETE_VIDEO = SERVER_IP + "/cs/video/deleteVideoDetails.html";
    /**
     * 拍客视频分享url
     **/
    public static final String PAIKE_VIDEO_SHARE_URL = SERVER_IP + "/cs/showweixin.html?imgURL=";
    /**
     * 上传视频时，判断标题和简介里的内容是否包含禁词
     */
    public static final String VIDEO_UPLOAD_JUDGE = SERVER_IP + "/cs/comments/removal.html";
    /**
     * 用以通知服务器 头像换成第三方的了，参数：userId,ImageURL
     */
    public static final String HEAD_UPDATA_TO_SERVE = SERVER_IP + "/cs/user/ssoImage.html";
    /**
     * 获取好友是否有更新信息，参数：userId, datetime
     */
    public static final String GET_FRIEND_UPDATA = SERVER_IP + "/cs/v1/QuerhaoyouVideolistjishusize.html";
    /**
     * 获取官方专辑及个人专辑，当参数userId为空时，返回官方专辑
     */
    public static final String GET_ALBUM_JSON = SERVER_IP + "/albumAction/chooseAlbum.json";
    /**
     * 获取个人专辑：userId ，rows ：返回个数，默认为10个，page 页数
     */
    public static final String GET_USER_ALBUM_JSON = SERVER_IP + "/albumAction/getUserAlbum.json";
    /**
     * 获取好友为拉入圈子：参数:圈子id:groupId
     */
    public static final String GET_USER_FRIEND = SERVER_IP + "/myGroupManager/findFriendMemberUserInfosByGroupUser.json";
    /**
     * 发布视频时，获取好友列表:参数：userId
     */
    public static final String GET_FRIEND_BY_SHARE_VIDEO = SERVER_IP + "/cs/user/MyFriendsList.html";
    /**
     * 添加专辑:参数：userId,videoId,albumName
     */
    public static final String GET_DATA_FOR_ADD_ALBUM = SERVER_IP + "/albumAction/addAlbumForVideo.json";
    /**
     * 删除专辑:参数：videoId,albumId
     */
    public static final String GET_DATA_FOR_REMOVE_ALBUM = SERVER_IP + "/albumAction/removeVideoFromAlbum.json";
    /**
     * 搜索视频接口：二期的:keyword 关键词，size 每页显示个数，pageNo 第几页 默认为1
     */
    public static final String GET_VIDEO_BY_SEARCH = SERVER_IP + "/web/search/video/find.json";//SERVER_IP_SEARCH
    /**
     * 搜索视频接口推荐的视频（搜索无数据）：二期的:keyword 关键词，size 每页显示个数，pageNo 第几页 默认为1
     */
    public static final String GET_VIDEO_BY_SEARCH_RECOMMEND = SERVER_IP + "/web/search/action/suggestData.json";
    /**
     * 搜索用户接口：二期的:keyword 关键词，size 每页显示个数，pageNo 第几页 默认为1
     */
    public static final String GET_USER_BY_SEARCH = SERVER_IP + "/web/search/user/find.json";
    /**
     * 搜索专辑接口：二期的:keyword 关键词，size 每页显示个数，pageNo 第几页 默认为1
     */
    public static final String GET_ALBUM_BY_SEARCH = SERVER_IP + "/web/search/album/find.json";
    /**
     * 搜索圈子接口：二期的:keyword 关键词，size 每页显示个数，pageNo 第几页 默认为1
     */
    public static final String GET_GROUP_BY_SEARCH = SERVER_IP + "/web/search/group/find.json";
    /**
     * 搜索话题接口：3期的:keyword 关键词，size 每页显示个数，pageNo 第几页 默认为1
     */
    public static final String GET_THEME_BY_SEARCH = SERVER_IP + "/web/search/topic/find.json";
    /**
     * 3期的发布视频页进入的搜索热门话题
     */
    public static final String GET_HOT_THEME_BY_SEARCH = SERVER_IP + "/topic/searchTopics.json";
    /**
     * 3期的发布视频页进入的获取热门话题和我的话题
     */
    public static final String GET_HOT_THEME_AND_MY = SERVER_IP + "/topic/getMyTopicsAndHotTopics.json";
    /**
     * 搜索总接口：二期的:keyword 关键词，size 每页显示个数，pageNo 第几页 默认为1
     */
    public static final String GET_ALL_BY_SEARCH = SERVER_IP + "/web/search/action/findTotalData.json";//SERVER_IP_SEARCH
    /**
     * 设置里的消息提醒，二期的
     */
    public static final String OPTION_MESSAGE_TIPS2 = SERVER_IP + "/message/userSetUpOpen.json";
    /**
     * 3期设置里消息中接口,上传参数userId
     */
    public static final String GET_SETTING_MESSAGE_ALL_3 = SERVER_IP + "/message/getMessagesSevenDay.json";
    /**
     * 3期设置里更新消息状态,上传参数id消息id,status
     */
    public static final String GET_SETTING_MESSAGE_UPDATA = SERVER_IP + "/message/setMessageStatus.json";
    /**
     * 设置里消息中圈主审核:参数groupId,userId
     */
    public static final String GET_DATA_OF_GROUP_AUDIT = SERVER_IP + "/message/joinGroup.json";
    /**
     * 设置里邀请好友里：获取新浪微博好友
     */
    public static final String GET_SINA_FRIENDS = SERVER_IP + "/oauth/relation/weibo.json";
    /**
     * 修改昵称userId,nickname
     */
    public static final String GET_NICKNAME_MODIFY = SERVER_IP + "/main/modifyNickname.html";
    /**
     * 获取微信token
     */
    public static final String GET_WEIXIN_ACCESSTOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token";

    /**
     * 根据性别判断应该使用option
     *
     * @param sex
     * @return
     */
    public static DisplayImageOptions getOption (String sex) {
        return Constant.IMAGE_OPTIONS_FOR_USER_OTHER;
    }

    /**
     * 瀑布流每页记录数
     */
    public static final int WATERFULL_PAGE_SIZE = 20;

    public static final int WATERFULL_PAGE = 19;

    public static final int HOME_WATERFULL_PAGE_SIZE = 10;

    /**
     * 创建圈子 – 获取分类
     */
    public static final String CREATE_QUANZI_QUERY_CATEGORIES_DATA = SERVER_IP + "/myGroupManager/findAllCategories.json";

    /**
     * 保存圈子
     */
    public static final String CREATE_QUANZI_SAVE = SERVER_IP + "/myGroupManager/createMyGroup.json";

    /**
     * 保存圈子
     */
    public static final String UPDATE_QUANZI_SAVE = SERVER_IP + "/myGroupManager/modifyMyGroup.json";

    /**
     * 获取圈子成员
     */
    public static final String QUARY_QUANZI_MEMBER = SERVER_IP + "/myGroupManager/findMemberUserInfosByGroupId.json";

    /**
     * 获取圈子明细
     */
    public static final String QUARY_QUANZI_DETAIL = SERVER_IP + "/myGroupManager/findGroupDetailById.json";

    /**
     * 解散圈子
     */
    public static final String REMOVE_GROUP = SERVER_IP + "/myGroupManager/removeGroupById.json";

    /**
     * 修改圈子头像
     */
    public static final String CHANGE_GROUP_IMG = SERVER_IP + "/myGroupManager/modifyMyGroupImg.json";

    /**
     * 获取圈子展示详情
     */
    public static final String QUARY_QUANZI_HOMEPAGE_DETAIL = SERVER_IP + "/groupDetail/findGroupDetailByGroupUser.json";

    /**
     * 加入,取消,剔除圈子
     */
    public static final String JION_OR_CANCEL_OR_DELETE_QUANZI = SERVER_IP + "/groupDetail/joinGroup.json";

    /**
     * 圈子管理 – 全部
     */
    public static final String QUARY_ALL_FOCUS_GROUP = SERVER_IP + "/myGroupManager/findAllFocusGroupByUserId.json";

    /**
     * 圈子管理 – 我的
     */
    public static final String QUARY_MY_CREATE_GROUP = SERVER_IP + "/myGroupManager/findMyGroupByUserId.json";

    /**
     * 获取用户专辑视频
     */
    public static final String QUARY_USER_ALBUM_VIDEO = SERVER_IP + "/albumAction/getUserAlbumVideo.json";

    /**
     * 从专辑删除视频
     */
    public static final String REMOVE_VIDEO_FROM_ALBUM = SERVER_IP + "/albumAction/removeVideoFromAlbum.json";

    /**
     * 获取圈子视频
     */
    public static final String QUERY_GROUP_VIDEOS_BY_GROUPID = SERVER_IP + "/groupDetail/findGroupVideosByGroupId.json";

    /**
     * 删除圈子视频
     */
    public static final String REMOVE_GROUP_VIDEO = SERVER_IP + "/groupDetail/removeGroupVideo.json";

    /**
     * 圈子视频置顶
     */
    public static final String GROUP_VIDEO_TOP = SERVER_IP + "/groupDetail/videoTop.json";

    /**
     * 圈子管理 – 圈子置顶
     */
    public static final String USER_GROUP_TOP = SERVER_IP + "/myGroupManager/userGroupTop.json";

    /**
     * 圈子红点请求
     */
    public static final String CHECK_RED_POINT = SERVER_IP + "/cs/v1/checkRedPoint.html";


    /**
     * 活动详情
     */
    public static final String GET_ACTION_ACTIVITY = SERVER_IP + "/activityAction/getActivity.json";

    /**
     * 我的收益：我的赞赏
     */
    public static final String GET_MYSHOUYI_MY_ZANSHANG = SERVER_IP + "/pay/myRewardIncomeDetail.json";
    /**
     * 我的收益：赞赏他人
     */
    public static final String GET_MYSHOUYI_ZANSHANG_OTHER = SERVER_IP + "/pay/myRewardPayOutDetail.json";
    /**
     * 我的收益：提现记录
     */
    public static final String GET_MYSHOUYI_MY_TIXIAN = SERVER_IP + "/pay/myApplyDetail.json";

    /**
     * 活动视频（获奖）
     */
    public static final String ACTION_VIDEO_LIST = SERVER_IP + "/activityAction/getActivityVideoList.json";
    /**
     * 发现视频分类
     */
    public static final String ACTION_DISCOVERYVIDEO_CLASSIFICATION = SERVER_IP + "/find/findAllSimpleVideoDetailsByVideoCategoryId.json";

    /**
     * 发现视频分类
     */
    public static final String ACTION_DISCOVERYVIDEO_CLASSIFICATION_STATIC = CDN_IP + "/static/findAllSimpleVideoDetailsByVideoCategoryId/";

    /**
     * 首页分类更多标识
     */
    public static final int CLASSIFICATION_HOME_FLAG = 1;

    /**
     * 发现分类标识
     */
    public static final int CLASSIFICATION_DISCOVERY_FLAG = 2;


    /**
     * 9/16视频图片加载占位图
     */
    public static final DisplayImageOptions VIDEO_9_16_OPTION = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.common_place_holder_bg)
            .showImageForEmptyUri(R.drawable.common_place_holder_bg)
            .showImageOnFail(R.drawable.common_place_holder_bg).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();

    /**
     * 9/16视频图片加载占位图
     */
    public static final DisplayImageOptions VIDEO_9_16_OPTION_2 = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.common_place_holder_bg)
            .showImageForEmptyUri(R.drawable.common_place_holder_bg)
            .showImageOnFail(R.drawable.common_place_holder_bg).bitmapConfig(Bitmap.Config.RGB_565)
//    .displayer(new RoundedBitmapDisplayer(2))
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();

    public static final DisplayImageOptions VIDEO_10_16_OPTION = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.common_place_holder_bg_16_10)
            .showImageForEmptyUri(R.drawable.common_place_holder_bg_16_10)
            .showImageOnFail(R.drawable.common_place_holder_bg_16_10).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();

    public static final DisplayImageOptions VIDEO_10_16_OPTION_ROUNDED = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.common_place_holder_bg_16_10)
            .showImageForEmptyUri(R.drawable.common_place_holder_bg_16_10)
            .showImageOnFail(R.drawable.common_place_holder_bg_16_10).bitmapConfig(Bitmap.Config.RGB_565)
            .displayer(new RoundedBitmapDisplayer(10))
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();

    public static final DisplayImageOptions THEME_IMG_ICON = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.icon_theme_img)
            .showImageForEmptyUri(R.drawable.icon_theme_img)
            .showImageOnFail(R.drawable.icon_theme_img).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();

    /**
     * Q我的页占位图
     */
    public static final DisplayImageOptions PERSONAL_HOME_OPTION = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.user_unlogin_bg)
            .showImageForEmptyUri(R.drawable.user_unlogin_bg)
            .showImageOnFail(R.drawable.user_unlogin_bg)
            .bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            .resetViewBeforeLoading(true).build();

    /**
     * 修改个人中心图片
     */
    public static final String ACTION_UPDATA_IMAGE = SERVER_IP + "/cs/user/updateBackgroundImage.html";

    /**
     * 视频分类数据
     */
    public static final String VIDEO_CATEGORIE_DATA = SERVER_IP + "/videoCategory/findAllSimpleVideoCategories.json";

    /**
     * 播放次数
     */
    public static final String VIDEO_PLAY_COUNT = SERVER_IP + "/videoDetail/increaseVideoDetailPlayNumByVideoId.json";

    /**
     * 通过ID话题头部信息
     */
    public static final String TOPIC_TITLE = SERVER_IP + "/topic/getTopic.json";

    /**
     * 通过Name话题头部信息
     */
    public static final String TOPIC_TITLEBYNAME = SERVER_IP + "/topic/getTopicByName.json";

    /**
     * 话题列表
     */
    public static final String TOPIC_VIDEO_LIST = SERVER_IP + "/topic/getTopicVideos.json";

    public static final String GET_VIDEO_STATE = SERVER_IP_UPLOAD + "mobileUpload/getVideoState";
    /**
     * 通知服务器视频完成去转码
     */
    public static final String SET_VIDEO_ZHUANMA = SERVER_IP_UPLOAD + "/mobileUpload/videoDetail";
    // 点击事件统计start
    /**
     * 首页焦点幻灯
     */
    public static final String HOME_SLIDE_ID = "android_home_slide_id";
    /**
     * 首页分类
     */
    public static final String HOME_CLASSIFICATION_ID = "android_home_classification_id";
    /**
     * 上传
     */
    public static final String UPDATE_ID = "android_update_id";
    /**
     * 分享
     */
    public static final String SHARE_ID = "android_share_id";
    /**
     * 视频详情页 广告
     */
    public static final String VIDEODETAIL_ADVERT_ID = "android_videodetail_advert_id";
    /**
     * 视频详情页 相关视频
     */
    public static final String VIDEODETAIL_RELEVANCE_ID = "android_videodetail_relevance_id";

    /**
     * 发布 选择分类
     */
    public static final String RELEASE_CLASSIFICATION_ID = "android_release_classification_id";
    /**
     * 发布 选择话题
     */
    public static final String RELEASE_TOPIC_ID = "android_release_topic_id";
    /**
     * 第三方登陆 新浪微博
     */
    public static final String THIRDPARTY_SINAWEIBO_ID = "android_thirdparty_sinaweibo_id";
    /**
     * 第三方登陆 qq
     */
    public static final String THIRDPARTY_QQ_ID = "android_thirdparty_qq_id";
    /**
     * 第三方登陆 微信
     */
    public static final String THIRDPARTY_WEIXIN_ID = "android_thirdparty_weixin_id";

    /**
     * 首页
     */
    public static final String HOME_ID = "android_home_id";
    /**
     * 订阅
     */
    public static final String SUBSCRIBE_ID = "android_subscribe_id";
    /**
     * 发现
     */
    public static final String DISCOVER_ID = "android_discover_id";
    /**
     * 我的
     */
    public static final String MY_ID = "android_my_id";

    /**
     * 主题
     */
    public static final String THEME_ID = "android_theme_id";

    /**
     * 我的主题
     */
    public static final String THEME_MYTHEME_ID = "android_mytheme_id";
    /**
     * 我的主题详情
     */
    public static final String THEME_MYTHEMEDETAIL_ID = "android_mythemedetail_id";

    /**
     * 全部主题
     */
    public static final String THEME_ALLTHEME_ID = "android_alltheme_id";
    /**
     * 全部主题详情
     */
    public static final String THEME_ALLTHEMEDETAIL_ID = "android_allthemedetail_id";

    /**
     * 1元夺宝
     */
    public static final String H5GAME_ID = "android_h5game_id";

    public static final String NETWORK_MESSAGE_HINT = "获取数据失败!";
    // 点击事件统计end
    // end 三期

    /**
     * 产生支付订单
     */
    public static final String ACTION_PAY_ORDER = SERVER_IP + "/pay/createorder.json";
    /**
     * 支付成功视频列表
     */
    public static final String ACTION_PAY_SUCCESS_VIDEOLIST = SERVER_IP + "/pay/relatedVideoList.json";
    /**
     * 用户注册
     */
    public static final String ACTION_USER_REGISTER = SERVER_IP + "/main/quickreg.html";
    /**
     * 详情页的关注关系的接口
     */
    public static final String PAIKE_VIDEO_DETAIL_FOCOUS_OF_USER = SERVER_IP + "/videoDetail/getFocusOnSourceByStatic.json";
    /**
     * 微信appid
     */
    public static final String APP_ID = "wx481d5c8e0b948599";
    public static final String secret = "305364eabce91c9b0864e1aa07f44cab";
    /**
     * 微信分享成功后的广播
     */
    public static final String SHARE_SUCCESS_SHARE = "com.v1.video.share.success_share";
    public static final String SHARE_CANCEL_SHARE = "com.v1.video.share.cancel_share";
    public static final String SHARE_DENY_SHARE = "com.v1.video.share.deny_share";
    public static final String SHARE_UNKNOWN_SHARE = "com.v1.video.share.unknown_share";
    public static SharePlatformActionListener listenerShare = new SharePlatformActionListener();
    public static boolean isLogin = false;
    public static boolean isShare = false;

    public static void setShare (boolean bool) {
        isShare = bool;
        isLogin = false;
    }

    public static void setLogin (boolean bool) {
        isLogin = bool;
        isShare = false;
    }

    /**
     * 是否初次进我的订阅
     */
    public static boolean isUploadOfSubscribeMy = false;
    /**
     * 是否已加载过loading图
     */
    public static boolean isDownLoadedImg = false;
    public static final String MESSAGE_UPDATA = "成功为您推荐%s条内容";

    /**
     * 分类列表
     */
    public static final String HOME_CLASSIFY_LIST = SERVER_IP_PHP + "mod=mob&ctl=category&act=gettotallist&cid=%s&p=%s&pcode=%s&version=%s&devid=%s";
    /**
     * 分类播放次数列表
     */
    public static final String HOME_CLASSIFY_PALY_LIST = SERVER_IP_PHP + "mod=mob&ctl=playnum&act=get&pcode=%s&version=%s&devid=%s";
    /**
     * 分类点赞接口
     */
    public static final String HOME_CLASSIFY_VIDEO_PRAISE = SERVER_IP_PHP + "mod=mob&ctl=videoParise&act=add&vid=%s&uid=%s&pcode=%s&version=%s&devid=%s";
    /**
     * 分类播放接口
     */
    public static final String HOME_CLASSIFY_VIDEO_PLAY = SERVER_IP_PHP + "mod=mob&ctl=playnum&act=add&vid=%s&uid=%s&pcode=%s&version=%s&devid=%s";
    /**
     * 分类分享接口
     */
    public static final String HOME_CLASSIFY_VIDEO_SHARE = SERVER_IP_PHP + "mod=mob&ctl=videoForward&act=forwardVideo&pcode=%s&version=%s&devid=%s";
    /**
     * 好友动态列表接口
     */
    public static final String FRIENDDYNAMICS_LIST = SERVER_IP_PHP + "mod=user&ctl=dynamic&act=getFriendsDynamic&uid=%s&p=%s&s=%s&pcode=%s&version=%s&devid=%s";
    /**
     * VR分类直播
     */
    public static final String CLASSIFY_VR_LIVE_LIST = SERVER_IP_PHP + "mod=mob&ctl=vr&act=getSubVideo&scid=%s&p=%s&s=%s&pcode=%s&version=%s&devid=%s";
    /**
     * VR直播
     */
    public static final String VR_LIVE_LIST = SERVER_IP_PHP + "mod=mob&ctl=vr&act=getVrLive&p=%s&s=%s&pcode=%s&version=%s&devid=%s";

    public static final String HOME_FIND_PAGE = SERVER_IP_4_STATIC + "mod/mob/ctl/discover/act/index/pcode/%s/version/%s.mindex.html";
    /**
     * 频道列表
     */
    public static final String HOME_CHANNEL_LIST = SERVER_IP_4_STATIC + "mod/mob/ctl/appcategory/act/getcategorylist/pcode/%s/version/%s.mindex.html";
    /**
     * 订阅：我的订阅：上半部分
     */
    public static final String GET_SUBSCRIBE_MY_1 = SERVER_IP_4_STATIC + "mod/mob/ctl/subscription/act/my/uid";
    /**
     * 4.0广告单独接口上
     */
    public static final String GET_VIDEO_AD_URL = SERVER_IP_4_STATIC + "mod/mob/ctl/ads/act/getVideoAd/s/";

    /**
     * 主题详情视频列表接口
     */
    public static final String THEME_DETAIL_VIDEO_LIST = SERVER_IP_4_STATIC + "mod/mob/ctl/theme/act/getthemevideolist/tid/%s/p/%s/pcode/%s/version/%s.mindex.html";
    /**
     * 4.5支持榜
     */

    public static final String KEY_MD5_USER = "EbsCstxF8sF2DaAUUDs";
    public static final String KEY_VIDEOFILE_ENCRYPT = "AtP3B8lbPyhx0geGumk593SeK66oOrFB";

    /**
     * 获取用户校验key
     */
    public static String getUserCheckKey (String name) {
        return DEVICEID + "_" + name + "_" + KEY_MD5_USER;
    }

    /**
     * 获取用户校验key第三方
     */
    public static String getUserCheckKey (String name, String accesstoken) {
        return DEVICEID + "_" + name + "_" + accesstoken + "_" + KEY_MD5_USER;
    }

    /**
     * 直播图像
     */
    public static final DisplayImageOptions ZHIBO_HEAD_IMG = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.faxian_zhibo)
            .showImageForEmptyUri(R.drawable.faxian_zhibo)
            .showImageOnFail(R.drawable.faxian_zhibo).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            //.displayer(new RoundedBitmapDisplayer(10))
            .resetViewBeforeLoading(true).build();

    /**
     * 话题图像
     */
    public static final DisplayImageOptions HUATI_HEAD_IMG = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.faxian_huati)
            .showImageForEmptyUri(R.drawable.faxian_huati)
            .showImageOnFail(R.drawable.faxian_huati).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            //.displayer(new RoundedBitmapDisplayer(10))
            .resetViewBeforeLoading(true).build();

    /**
     * 活动精选图像
     */
    public static final DisplayImageOptions HUODONG_HEAD_IMG = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.faxian_huodong)
            .showImageForEmptyUri(R.drawable.faxian_huodong)
            .showImageOnFail(R.drawable.faxian_huodong).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            //.displayer(new RoundedBitmapDisplayer(10))
            .resetViewBeforeLoading(true).build();


    /**
     * 直播图像
     */
    public static final DisplayImageOptions LIVE_HEAD_IMG = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.icon_live_default)
            .showImageForEmptyUri(R.drawable.icon_live_default)
            .showImageOnFail(R.drawable.icon_live_default).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
            //.displayer(new RoundedBitmapDisplayer(10))
            .resetViewBeforeLoading(true).build();
    // end 第四期
    public static final DisplayImageOptions GUIDE_SHOW_IMG = new DisplayImageOptions.Builder()
            .showImageOnLoading(R.drawable.icon_logo)
            .showImageForEmptyUri(R.drawable.icon_logo)
            .showImageOnFail(R.drawable.icon_logo).bitmapConfig(Bitmap.Config.RGB_565)
            .imageScaleType(ImageScaleType.EXACTLY).cacheInMemory(true).cacheOnDisc(true)
//    .displayer(new RoundedBitmapDisplayer(10))
            .resetViewBeforeLoading(true).build();


    public final static String CLEACOOKIE = "com.v1.video.clearCookie";

    public final static int CLASSIFY_REFRESH = 0;
    public final static int CLASSIFY_PRAISE = 1;
    public final static int CLASSIFY_SHARE = 2;
    public final static int CLASSIFY_ADV = 3;

    /**
     * 请愿TICK
     */
    public static final String PETITION_TICK = SERVER_IP_USER + "mod=mob&ctl=user2&act=gettick&uid=%s&pcode=%s&version=%s&devid=%s";
    /**
     * 检查请愿TICK
     */
    public static final String PETITION_CHECKTICK = SERVER_IP_UPLOAD_FILE + "mod=mob&ctl=star&act=checktick&uid=%s&pcode=%s&version=%s&devid=%s";

    /**
     * 支付订单
     */
    public static final String LIVEPAY_ORDER = SERVER_IP_USER + "mod=pay&ctl=payment&act=porder&commodityid=%s&serviceCode=%s&uid=%s&pcode=%s&version=%s&devid=%s&key=%s";

    /**
     * 获取支付key
     *
     * @param uid
     * @param commodityid
     * @return
     */
    public static String getPayKey (String uid, String commodityid) {
        String key = DEVICEID + "_" + uid + "_" + commodityid + "_"
                + "pDHG0Naem1Uty5J1Kr0E";
        Logger.i("getPayKey", "getPayKey()-->" + key);
        return MD5.getMessageDigest(key);
    }

    public static String getVideoFileEncryptKey (String uid, String vid,
                                                 String timeStamp) {
        String key = DEVICEID + "_" + uid + "_" + vid + "_" + timeStamp + "_"
                + KEY_VIDEOFILE_ENCRYPT;
        return MD5.getMessageDigest(key);
    }

    public static final String BUDDHISM_TYPE_1 = "1";
    public static final String BUDDHISM_TYPE_2 = "2";


    public static final String CIBN_PLAYER_APPKEY = "MWU3NjUyYjQ0NGEx";
    public static final int COMMENT_PAGE_SIZE = 10;
    public static final String COMMENT_VIDEO_TYPE = "1";
    public static final String COMMENT_TIME_SORT = "1";
    public static final String COMMENT_HOT_SORT = "2";

    /**
     * CIBN分类列表
     */
    public static final String CIBN_CLASSIFY_LIST = SERVER_IP_PHP + "mod=cibn&ctl=cibn&act=get&appOs=Android&appVer=2.0&categoryId=%s&page=%s&pageSize=" + HOME_WATERFULL_PAGE_SIZE + "&osVer=%s";

    /**
     * CIBN视频详情
     */
    public static final String CIBN_VIDEODETAIL = SERVER_IP_PHP + "mod=cibn&ctl=cibn&act=des&appOs=Android&appVer=2.0&&videoid=%s&osVer=%s";

    /**
     * CIBN推荐列表
     */
    public static final String CIBN_RECOMMEND_LIST = SERVER_IP_PHP + "mod=cibn&ctl=cibn&act=list&appOs=Android&appVer=2.0&categoryId=%s&osVer=%s";

    /**
     * 获取评论列表
     */
    public static final String COMMENT_LIST = SERVER_IP_PHP + "mod=mob&ctl=onecomment&act=get&sys_type=1&object_type=%s&object_id=%s&last_id=%s&sort_type=%s&pcode=" + PRODUCT_CODE + "&version=" + PRODUCT_VERSION + "&devid=%s";


    /**
     * 秒评详情投票接口
     */
    public static final String SECOND_DETAIL_VOTE = SERVER_IP_PHP + "mod=mob&ctl=videoCommentSecond&act=voteNew";
    /**
     * 秒评增加播放数接口
     */
    public static final String SECOND_ADD_PLAYNUM = SERVER_IP_PHP + "mod=mob&ctl=playnum&act=add";
}
